package cn.hotel.mapper;

import cn.hotel.entity.RoomType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.bouncycastle.asn1.esf.SPuri;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface RoomTypeMapper {
    public List<RoomType> queryAllRoomType();
    public int updateRoomRest(@Param("typeId")Integer typeId,@Param("operate") String operate);
    //根据RoomTypeId查询房间类型信息
    RoomType getRoomTypeByRoomTypeId(Integer typeId);
    //更新roomType信息
    void updateRoomType(RoomType roomType);
    //插入roomType信息
    void insertRoomType(RoomType roomType);
    //根据id删除房间类别信息
    void deleteRoomTypeByRoomId(int roomId);
}
